package com.boboPlanet.comm.rabbitmq.consume;


import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.support.AmqpHeaders;
import org.springframework.messaging.handler.annotation.Header;

import java.io.IOException;

/**
 * @Description: TODO 星球消费者监听
 * @Author: mis_wu
 * @Date: 2023/6/22
 **/
public interface PlanetConsumeListener {

    String queue();

    String exchange();

    String routingKey();

    String ackMode();

    void receive(Message message, Channel channel, @Header(AmqpHeaders.DELIVERY_TAG) long tag) throws IOException;
}
